#define _CRT_SECURE_NO_WARNINGS  1

#include"SLT.h"

void testSLT1(void)
{
	
	SListNode* plist = NULL;

	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);


	

	//SListPopBack(&plist);


	SListNode* ret = SListFind(plist,2);
	ret->data = (ret->data) * 2;
	SLTInsert(&plist, ret, 20);
	SListPrint(plist);

}


void testSLT2()
{
	SListNode* plist = NULL;
	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 4);

	SListPopFront(&plist);

	SListPrint(plist);



}


int main()
{
	testSLT1();
	//testSLT2();

	return 0;
}

